import random

# 与系统玩剪刀石头布游戏，系统出的数为随机数
computer = random.randint(0, 2)
admin = int(input("请用户输入:"))
if admin == 0:
    h = "剪刀"
elif admin == 1:
    h = "石头"
else:
    h = "布"
print("你的输入为:%s(%d)" % (h, admin))
if admin < 0 or admin > 2:
    print("Error")
else:
    if admin < computer:
        print("哈哈,你输了")
    elif admin == computer:
        print("平局")
    else:
        print("哈哈,我赢了")
